 package com.gmrz.uaf.protocol.v1.json;
 
 import com.google.gson.InstanceCreator;
 import com.google.gson.JsonDeserializationContext;
 import com.google.gson.JsonDeserializer;
 import com.google.gson.JsonElement;
 import com.google.gson.JsonParseException;
 import com.google.gson.JsonSerializationContext;
 import com.google.gson.JsonSerializer;
 import com.gmrz.uaf.protocol.v1.schema.FacetID;
 import java.lang.reflect.Type;
 
 public class FacetIDAdapter
   implements InstanceCreator<FacetID>, JsonSerializer<FacetID>, JsonDeserializer<FacetID>
 {
   public FacetID createInstance(Type type)
   {
     return new FacetID();
   }
 
   public JsonElement serialize(FacetID src, Type typeofSrc, JsonSerializationContext context)
   {
     return context.serialize(src.getId());
   }
 
   public FacetID deserialize(JsonElement json, Type typeofT, JsonDeserializationContext context)
     throws JsonParseException
   {
     return new FacetID().withId(json.getAsString());
   }
 }
